#include "WaterEnemyData.h"




WaterEnemyData::WaterEnemyData(int id, int type, double x, double y)
{
	this->id = id; 
	this->type = type;
	this->rect = new Rect(x, y, _OBS_WATER_ENEMY_2_HEIGHT, _OBS_WATER_ENEMY_2_WIDTH);
	this->rect->Vx = this->rect->Vy = 0;
	this->delayForShoot = 3;
	this->delayBeforeShoot = 10;
	this->initData();
}

void WaterEnemyData::initBulletContainer()
{
	bulletContainer = new BulletContainer(targetRect, BulletArmy);
	bulletContainer->updateData(400, 0, 1, _ID_BULLET_WATER_ARMY);
}

void WaterEnemyData::initSprites()
{
	initSpriteHandler();
	sprites->addSprite(STATE_ASSIGN, _ID_MAP_STAGE2_WATER_ENEMY_1, 20);
	sprites->addSprite(STATE_SHOOTING, _ID_MAP_STAGE2_WATER_ENEMY_2, 0);
	sprites->setState(STATE_ASSIGN);
}

void WaterEnemyData::initData()
{
	this->initSprites();
	this->initBulletContainer();
}

WaterEnemyData::~WaterEnemyData()
{

}
